﻿using Longbow.Caching;
using System.Collections.Generic;

namespace CpsyV2Web.DataAccess
{
    class CacheCleanUtility
    {
        public static void ClearCache(string expertIds = null, string userName = null, string notificationIds = null)
        {
            var cacheKeys = new List<string>();
            if (expertIds != null || userName != null)
            {
                CacheManager.Clear(Key => Key.Contains(PersonHelper.RetrievePersonDataKey));
                cacheKeys.Clear();
            }
        }
    }
}
